<?php
include('prepend.inc.php');

class ActivateAccount extends QForm
{
	public function __construct()
	{
		var_dump($_GET['aid']);
		if(isset($_GET['aid']))
		{
			self::activateaccount($_GET['aid']);
		}
	}
	
	public static function activateaccount($encryptedid)
	{
		$eid = $encryptedid;
		$condition = QQ::Clause(QQ::Equal(QQN::Memberdetails()->Password,$eid);v);
		 //$condition->QQ::Equal(QQN::Memberdetails()->Password,$eid);
		$objMember  = Memberdetails::QueryArray(QQ::All(),$condition);
		
		
		$objMember->Active = true;
		$objMember->Save();
	}
}

ActivateAccount::Run('ActivateAccount');
?>